/*
 * imu.h
 *
 *  Created on: Apr 7, 2024
 *      Author: boen
 */

#ifndef PERIPHERALS_INC_IMU_H_
#define PERIPHERALS_INC_IMU_H_

#include <nvic.h>

#if JY901S
#define IMU_RX_BUFF_MAX										11
#endif

#if DETA10
#define IMU_RX_BUFF_MAX										56
#endif

void imu_timer(void);

int imu_get_reply(float yaw);
int imu_is_ready(void);

int imu_init(void);
int imu_deinit(void);
int imu_polling(void);

#endif /* PERIPHERALS_INC_IMU_H_ */
